/*
 * @(#)DmsErrorConstant.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.dms;

/**
  DmsErrorConstant.java

  This class is to store all error code constants which used in systems.

    @author          Rollo Chan
    @company         DCIVision Limited
    @creation date   24/06/2003
    @version         $Revision: 1.63.2.2 $
*/

public class DmsErrorConstant extends com.dcivision.framework.ErrorConstant{

  public static final String REVISION = "$Revision: 1.63.2.2 $";

  protected DmsErrorConstant() {
  }

  public final static String LIST_DOCUMENT_ERROR = "errors.dms.list_document_error";
  public final static String LOC_RESOLVER_CLASS_NOT_FOUND = "errors.dms.loc_resolver_class_not_found";
  public final static String NAME_CONVERTOR_CLASS_NOT_FOUND = "errors.dms.name_convertor_class_not_found";
  public final static String LABEL_GENERATOR_CLASS_NOT_FOUND = "errors.dms.label_generator_class_not_found";
  public final static String ROOT_LOC_NOT_FOUND = "errors.dms.root_location_not_found";

  /* User Defined Index */
  public final static String DUPLICATE_PROFILE_NAME = "errors.dms.duplicate_profile_name";
  public final static String NEW_FIELD_NUMERIC_VALUE = "errors.dms.new_field_numeric_value";
  public final static String DUPLICATE_FIELD_NAME = "errors.dms.duplicate_field_name";
  public final static String DUPLICATE_OPTION_NAME = "errors.dms.duplicate_field_value";
  
  /* DMS Exception Error */
  public final static String DUPLICATE_FILE_NAME = "errors.dms.duplicate_file_name";
  public final static String DUPLICATE_FILE_CHECKOUT = "errors.dms.duplicate_file_checkout";
  public final static String CHECKIN_IDENTITY_MISMATCH = "errors.dms.checkin_identity_mismatch";
  public final static String CHECKIN_INAVAILABLE = "errors.dms.checkin_inavailable";
  public final static String RENAME_FILE_ERROR = "errors.dms.rename_file";
  public final static String NO_AVAILABLE_SPACE = "errors.dms.no_available_space";
  public final static String DUPLICATE_REFERENCE_NO = "errors.dms.duplicate_reference_no";
  public final static String EMPTY_CONTENT_DOCUMENT = "errors.dms.empty_content_document";
  public final static String UNDER_SAME_NODE = "errors.dms.under_same_node";
  public final static String TARGET_DOCUMENT_NOT_FOUND = "errors.dms.target_document_not_found";
  public final static String EMPTY_REFERENCE_NO="errors.dms.empty_reference_no";
  public final static String HAVE_NO_FUNCTION_PERMISSION = "errors.dms.have_no_function_permission";
  public final static String DUPLICATE_DOC_RELATIONSHIP = "errors.dms.duplicate_doc_relationship" ;
  public final static String DUPLICATE_PUBLIC_FOLDER = "errors.dms.duplicate_public_folder";
  public final static String EMPTY_FOLDER_NAME = "errors.dms.empty_folder_name";
  public final static String EMPTY_DOCUMENT_NAME = "errors.dms.empty_document_name";
  public final static String FOLDER_COPY_COMPOUND_DOC="errors.dms.folder_copy_compound_doc";
  public final static String COMPOUND_DOC_COPY_COMPOUND_DOC="errors.dms.compound_doc_copy_compound_doc";
  public final static String PHYSICAL_FILE_NOT_FOUND="errors.dms.physical_file_not_found";
  public final static String NO_PERMISSION_DELETE_DOC="errors.dms.no_permission_delete_doc";
  public final static String PAPER_DOC_COPY_COMPOUND_DOC="errors.dms.paper_doc_copy_compound_doc";
  public final static String FOLDER_COPY_PAPER_DOC="errors.dms.folder_copy_paper_doc";
  public final static String COMPOUND_DOC_COPY_PAPER_DOC="errors.dms.compound_doc_copy_paper_doc";
  public final static String PAPER_DOC_COPY_PAPER_DOC="errors.dms.paper_doc_copy_paper_doc";
  public final static String DOCUMENT_STORED_EXCEED_STORAGE_LIMIT="errors.dms.document_stored_exceed_storage_limit";
  public final static String NO_RIGHT_CREATE_FOLDER = "errors.dms.no_right_create_folder";
  
  /* DMS SEARCH RESULT EXPORT */
  public final static String RESULT_ZIP_FAILED = "errors.dms.result_zip_failed";
  public final static String RESULT_ZIP_ARCHIVED_FILE_FAILED="errors.dms.result_zip_archived_file";
  public final static String SEARCH_CRITERIA_NON_EXIST = "errors.dms.result_criteria_non_exist";
  public final static String READ_EXCEL_FAILED = "errors.dms.read_excel_failed";

  /* DMS ARCHIVE RESTORE ERROR */
  public final static String ARCHIVE_ROOT_NOT_EXIST = "errors.dms.restore_root_not_exist";
  public final static String INVALID_ARCHIVE = "errors.dms.archive_invalid";
  public final static String ARCHIVE_ID_INCORRECT = "errors.dms.archive_id_incorrect";
  public final static String ARCHIVE_FILE_CORRUPTTED = "errors.dms.archive_file_corrupted";
  public final static String DUPLICATE_ARCHIVE_NAME="errors.dms.duplicate_archive_name";
  public final static String NO_CAPACITY_TO_STORE="errors.dms.no_capacity_to_store";
  public final static String NO_CAPACTIY_TO_RESTORE_DOCUMENT="errors.dms.no_capacity_to_restore_document";
  public final static String DMS_MESSAGE_RECORD_INSTERTED="dms.message.record_inserted";
  public final static String NO_DOCUMENT_TO_ARCHIVE="dms.message.no_document_to_archive";
  public final static String CANNOT_FIND_ARCHIVE_PHYSICAL_FILE="errors.dms.cannot_find_physical_file";
  public final static String CANNOT_ARCHIVE_PERSONAL_FOLDER="errors.dms.cannot_archive_personal_folder";

  /* DMS Folder Structure Loader */
  public final static String SUCCESS_ROW = "errors.dms.row_success";
  public final static String FAIL_ROW = "errors.dms.row_failure";
  public final static String ROW_ERROR = "errors.dms.row_error";
  public final static String ROW_NO = "errors.dms.row_no";
  public final static String FILE_ERROR = "errors.dms.file_error";
  public final static String ZIPFILE_ERROR = "errors.dms.zipfile_error";
  public final static String ERROR = "errors.dms.error";

  /* DMS QUERY SAVE ERROR */
  public final static String DUPLICATED_QUERYNAME="errors.dms.duplicated_queryname";
  public final static String CANNOT_SAVE_PERSONAL_AS_PUBLIC="errors.dms.cannot_save_personal_as_public";
  public final static String SELECT_SEARCH_LOCATION="errors.dms.search_location";

  /* DMS SEARCH ERROR*/
  public final static String REMOTE_SEARCHER_FOUND_ERROR="errors.dms.remote_search_error";

  /* DMS DELETE WARING*/
  public final static  String MESSAGE_RECORD_CHECKOUT_NOTDELETED = "dms.message.record_checkout_notdeleted";
  public final static  String MESSAGE_RECORD_NOTPERMISSION_NOTDELETED = "dms.message.record_notpermission_notdeleted";
  public final static  String MESSAGE_RECORD_DELETED_SUCCESS = "dms.message.record_deleted_success";
  public final static String DMS_MESSAGE_PERMISSION_NOT_DELETE="dms.message.no_right_delete_doc";
  public final static String DMS_MESSAGE_UNABLE_DELETE_MYFAVORITE="dms.message.unable_delete_myfavorite";
  public final static String DMS_MESSAGE_UNABLE_MOVE_MYFAVORITE="dms.message.unable_move_myfavorite";
  
  /* DMS RENAME WARING */
  public final static String DMS_MESSAGE_UNABLE_RENAME_MYFAVORIT="dms.message.unable_rename_myfavorite";

  /* DMS EMAIL ARCHIVE*/
  public final static  String MESSAGE_EMAILARCHIVE_CONNECT_ERROR = "errors.dms.emailarchive.connecterror";
  public final static  String MESSAGE_EMAILARCHIVE_LOGINFAIL = "errors.dms.emailarchive.loginfail";  

  public final static  String MESSAGE_EMAILARCHIVE_DUPLICATE_EMAIL_SUBJECT_ERROR = "errors.dms.emailarchive.duplicate.subject";
  public final static  String MESSAGE_EMAILARCHIVE_FAIL_TO_DOWNLOAD_EMAIL  = "errors.dms.emailarchive.fail.download.email";    
  public final static  String MESSAGE_EMAILARCHIVE_FAIL_SAVE_EMAIL_TO_DMS  = "errors.dms.emailarchive.fail.save.email";      
  public final static  String MESSAGE_EMAILARCHIVE_FAIL_TO_GET_EMAIL_CONTENT  = "errors.dms.emailarchive.get.email.content.failed";        
  public final static  String ERROR_DMS_SEND_EMAIL = "errors.dms.send_email.fail";
  
  /* DMS SHORTCUT WARNING */
  public final static String DMS_MESSAGE_UNABLE_SHORTCUT_PUBLIC_PERSONAL="dms.message.unable_shortcut_public_to_personal";
  public final static String DMS_MESSAGE_UNABLE_SHORTCUT_PERSONAL_PUBLIC="dms.message.unable_shortcut_personal_to_public";
  public final static String DMS_MESSAGE_SOURCE_DOCUMENT_NO_PERMISSION="dms.message.source_document_no_permission";
  public final static String DMS_MESSAGE_TARGET_FOLDER_NO_PERMISSION="dms.message.target_folder_no_permission";
  public final static String DMS_MESSAGE_UNABLE_SHORTCUT_ARCHIVED_DOCUMENT="dms.message.unable_shortcut_archived_document";
  public final static String DMS_MESSAGE_UNABLE_SHORTCUT_EXPIRED_DOCUMENT="dms.message.unable_shortcut_expired_document";
  public final static String DMS_MESSAGE_UNABLE_SHORTCUT_FOLDER_COMPOUND_IN_COMPOUNDOC="dms.message.unable_shortcut_folder_compound_in_compoundoc";
  public final static String DMS_MESSAGE_UNABLE_SHORTCUT_ROOT_FOLDER = "dms.message.unable_shortcut_root_folder";
  
  /* File System ContentStore Handler Exception type*/
  public final static String CONTENT_STORE_HANDLER_ERROR_MISSING_PARAMETER = "errors.dms.content_store_handler_error_missing_parameter";
  public final static String CONTENT_STORE_HANDLER_ERROR_FILE_NOT_FIND = "errors.dms.content_store_handler_error_file_not_find";
  public final static String CONTENT_STORE_HANDLER_ERROR_FILE_EXIST = "errors.dms.content_store_handler_error_file_exist";  
  public final static String CONTENT_STORE_HANDLER_ERROR_WRITE_FAILED =  "errors.dms.content_store_handler_error_write_failed";
  public final static String CONTENT_STORE_HANDLER_ERROR_READ_FAILED =  "errors.dms.content_store_handler_error_read_failed";
  public final static String CONTENT_STORE_HANDLER_ERROR_RENAME_FAILED = "errors.dms.content_store_handler_error_rename_failed";
  public final static String CONTENT_STORE_HANDLER_ERROR_DELETED_FAILED = "errors.dms.content_store_handler_error_deleted_failed";  
  
}
